'use strict';

function showRequestMiddleware(req, res, next) {
  console.log(`${req.ip} - ${req.method}  ${req.originalUrl}`);
  console.log(req.body);
  console.log(req.cookies);
  next();
}

// This is a better way to avoid changing the export
Object.assign(module.exports, {
  showRequestMiddleware
});
